
package com.eyedog.video.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.eyedog.video.db2.entities.BaseEntity;

public class ProfileEntity extends BaseEntity implements Parcelable {

    public String share_url;

    public int times_watched;

    protected ProfileEntity(Parcel in) {
        share_url = in.readString();
        times_watched = in.readInt();
    }

    public static final Creator<ProfileEntity> CREATOR = new Creator<ProfileEntity>() {
        @Override
        public ProfileEntity createFromParcel(Parcel in) {
            return new ProfileEntity(in);
        }

        @Override
        public ProfileEntity[] newArray(int size) {
            return new ProfileEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(share_url);
        parcel.writeInt(times_watched);
    }

    public String getShare_url() {
        return share_url;
    }

    public void setShare_url(String share_url) {
        this.share_url = share_url;
    }

    public int getTimes_watched() {
        return times_watched;
    }

    public void setTimes_watched(int times_watched) {
        this.times_watched = times_watched;
    }
}
